package dao;

import java.util.List;

import pojo.News_users;
import utils.PreHandle;

public class News_usersDao {

	public static News_users doLogin(String uname, String upwd) {

		String sql = "select * from news_users where uname=? and upwd=?";

		List<News_users> list = PreHandle.query(sql, News_users.class, uname, upwd);
		return list.size() ==0?null:list.get(0);

	}

	
}
